use dataforge::*;

#[test]
fn test_simple_rand_num() {
    let num = rand_num!(1, 100);
    assert!(num >= 1 && num <= 100);
}

#[test]
fn test_simple_pattern() {
    let phone = pattern!("1[3-9]\\d{9}");
    assert!(phone.len() == 11);
    assert!(phone.starts_with("1"));
}

#[test]
fn test_simple_datetime() {
    let iso_date = datetime!("iso");
    assert!(!iso_date.is_empty());
}